Python GUI Programming Cookbook, Second Edition by Burkhard A. Meier
Author:Burkhard A. Meier
Language: eng
Format: mobi, epub
Tags: COM051000 - COMPUTERS / Programming / General, COM051360 - COMPUTERS / Programming Languages / Python, COM051010 - COMPUTERS / Programming Languages / General
Publisher: Packt
Published: 2017-12-13T09:35:15+00:00
# Button callback
def click_me(self):
self.action.configure(text='Hello ' + self.name.get())
bq.write_to_scrol(self)
sleep(2)
html_data = url.get_html()
print(html_data)
self.scrol.insert(tk.INSERT, html_data)
The HTML data is now displayed in our GUI widget:
GUI_URL.py
How it works…
We create a new module to separate the code that gets the data from a webpage from our GUI code. This is always a good thing to do. We read in the webpage data and then return it to the calling code after decoding it. We then use the button callback function to place the returned data into the ScrolledText control.
This chapter introduced us to some advanced Python programming concepts, which we combined to produce a functional GUI program.
Download
Python GUI Programming Cookbook, Second Edition by Burkhard A. Meier.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(20603)
Hello! Python by Anthony Briggs(19899)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18208)
Dependency Injection in .NET by Mark Seemann(18108)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17575)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17421)
Kotlin in Action by Dmitry Jemerov(17185)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16930)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16235)
Grails in Action by Glen Smith Peter Ledbrook(15390)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(13266)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(11381)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10579)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10393)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(9387)
Hit Refresh by Satya Nadella(9083)
The Kubernetes Operator Framework Book by Michael Dame(8521)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8348)
Robo-Advisor with Python by Aki Ranin(8294)